package org.moka.ioio.ioiopilot.output;



public abstract class AbstractOutput implements OutputInterface{

	public volatile int value = 0;
	protected int pin = 0;
	
	public AbstractOutput(int outputPin)
	{
		pin = outputPin;
	}
	
	protected void validate() {
		if(value>MAX_VALUE) value = MAX_VALUE;
		else if(value<MIN_VALUE) value = MIN_VALUE;
	}
}
